#ifndef __WATCHPOINT_H__
#define __WATCHPOINT_H__

#include "common.h"

typedef struct watchpoint {
  int NO;
  struct watchpoint *next;

  /* TODO: Add more members if necessary */
  char* expr;       // 待监视的表达式
  uint32_t val;     // 表达式的旧值


} WP;

WP* get_wp_head();

WP* new_wp(char *expr);

void free_wp(WP *wp);

#endif
